package net.aiion.weave.impl.cards;

import net.aiion.weave.spi.cards.CardContext;
import net.aiion.weave.spi.cards.expressions.CardExpressionResolverService;
import net.aiion.weave.spi.naming.Context;
import net.aiion.weave.spi.xml.XmlGenerator;

public class CardContextImpl implements CardContext
{
    private final Context context;
    private final CardExpressionResolverService cardExpressionResolverService;
    private final XmlGenerator xmlGenerator;

    public CardContextImpl(final Context aContext, final CardExpressionResolverService aCardExpressionResolverService,
        final XmlGenerator aXmlGenerator)
    {
        context = aContext;
        cardExpressionResolverService = aCardExpressionResolverService;
        xmlGenerator = aXmlGenerator;
    }

    @Override
    public Context getContext() {
        return context;
    }

    @Override
    public CardExpressionResolverService getExpressionResolverService() {
        return cardExpressionResolverService;
    }

    @Override
    public XmlGenerator getXmlGenerator() {
        return xmlGenerator;
    }
}
